﻿using System;
using System.Collections.Generic;

using RexToy.UI.WinForm;
using RexToy.UI.WinForm.Pmlx;
using RexToy.UI.WinForm.ViewModel;

namespace Studio.ViewModel
{
    public class FrmExceptionVM : ViewModelBase
    {
        private IUICommand _okCmd;
        public IUICommand OKCommand
        {
            get
            {
                if (_okCmd == null)
                {
                    _okCmd = new ActionCommand(() => this.OnClose());
                }
                return _okCmd;
            }
        }        

        public Exception Error { get; set; }
    }
}
